﻿@model Website.Models.Product

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Product</legend>

    <div class="display-label">ProductCode</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductCode)
    </div>

    <div class="display-label">Price</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Price)
    </div>

    <div class="display-label">Category</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Category.CategoryName)
    </div>

    <div class="display-label">MainImage</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MainImage)
    </div>

    <div class="display-label">SubImage1</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage1)
    </div>

    <div class="display-label">SubImage2</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage2)
    </div>

    <div class="display-label">SubImage3</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage3)
    </div>

    <div class="display-label">Desc</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Desc)
    </div>

    <div class="display-label">SmallImage</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SmallImage)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ProductID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
